<%-- 
    Document   : filtrar
    Created on : 07/04/2014, 20:21:32
    Author     : Drazzull
--%>

<%@page import="OR.ViagemOR"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="FuncoesGerais.ConectaDB"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="Css/Estilo.css" media="all">
        <link href="Css/bootstrap.min.css" rel="stylesheet">
        <link href="Css/bootstrap-responsive.min.css" rel="stylesheet">
        <link href="Css/bootstrap-theme.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="Css/bootstrap-select.css">
    </head>
    <body>
        <div id="container">
            <form action="PesquisarViagemServlet" method="POST" onsubmit="return validarCampos();">
                <label for='cboPesquisa'>Tipo da pesquisa:</label>
                <select class="selectpicker" data-width="auto" name="cboPesquisa" id="cboPesquisa"><br/>
                    <option value="0">Por nome aproximado do motorista</option>
                    <option value="1">Por marca aproximada do veículo</option>
                    <option value="2">Por idade do motorista</option>
                    <option value="3">Por faixa de valores para distância percorrida em KM</option>
                </select>
                <br />
                <label for='txtPesquisa'>Pesquisar Por:</label>
                <div class="input-group">
                    <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
                    <input maxlength=50 type="text" class="form-control" name="txtPesquisa" id="txtPesquisa" placeholder="Insira o valor a ser pesquisado">
                </div>
                <br/>
                <label>&nbsp; </label>
                <input type="submit" class="btn btn-default" value="Pesquisar">
                <br />
            </form>
        </div>

        <script src="js/jquery.min.js"></script>
        <script src="js/funcoes.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/bootstrap-select.js"></script>
        <script type="text/javascript">
                $(window).on('load', function() {

                    $('.selectpicker').selectpicker({
                        'selectedText': 'cat'
                    });
                });
        </script>
    </body>
</html>
